package com.hfmall.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.annotations.ResultMap;

/**
 * <p>
 * 
 * </p>
 *
 * @author liclo
 * @since 2021-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class HfCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String category;  //分类名称

    @TableField("Category_id")
    private Integer categoryId;  //所属分类id

    private String isnav;  //是否导航:y：导航；n：不导航

    private String ishot;  //是否热门

    private String level; // 等级

    /**
     * 次级类别
     * @author liclo
     * @date 2021/8/13
     */
    @TableField(exist = false)
    private List<HfCategory> children;
}
